package org.example.model.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * 用户获取积分明细表
 */

@Data
@TableName("point_detail")
public class PointDetail implements Serializable {
    @TableId(value = "point_detail_id",type = IdType.AUTO)
    private Integer pkId;
    @TableField("user_id")
    private Integer userId;
    @TableField("point_rule_id")
    private Integer ruleId;
    @TableField("point_num")
    private Integer num;
    @TableField("rule_name")
    private String ruleName;
    @TableField("publish_time")
    private Date time;

    public PointDetail(Integer userId, Integer ruleId, Integer num, Date time) {
        this.userId = userId;
        this.ruleId = ruleId;
        this.num = num;
        this.time = time;
    }
}
